﻿namespace HRM.CORE.Candidate
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Grid;
    using Microsoft.VisualBasic;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Dictionary;
    using HRM.CORE;
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms; using Common;

    public class xfmRecruit : XtraForm
    {
        private SimpleButton btCancel;
        private SimpleButton btOK;
        private CalcEdit calBasicSalary;
        private CalcEdit calCoefficient;
        private CalcEdit calMinimumSalary;
        private CalcEdit calTestSalary;
        private ComboBoxEdit cboPosition;
        private ComboBoxEdit cboStepSalary;
        private ComboBoxEdit cboTimeTest;
        private CheckEdit cheIsTest;
        private CheckEdit cheOption;
        private GridColumn colRankCode;
        private GridColumn colRankName;
        private IContainer components;
        private DataTable dt_Candidate;
        private DateEdit dtTestFromDate;
        private DateEdit dtTestToDate;
        private GridLookUpEdit glkBranch;
        private GridLookUpEdit glkDepartment;
        private GridLookUpEdit glkGroup;
        private GridLookUpEdit glkRankSalary;
        private GridColumn gridColumn10;
        private GridColumn gridColumn5;
        private GridColumn gridColumn6;
        private GridColumn gridColumn7;
        private GridColumn gridColumn8;
        private GridColumn gridColumn9;
        private GridView gridLookUpEdit1View;
        private GridView gridView4;
        private GridView gridView5;
        private GridView gridView7;
        private GroupControl grRecruitmentInformation;
        private GroupControl grRecruitmentList;
        private GroupControl grTest;
        private DevExpress.Utils.ImageCollection imgList;
        private ImageListBoxControl imglistCandidate;
        private LabelControl lcBasicSalary;
        private LabelControl lcBranch;
        private LabelControl lcCoefficientSalary;
        private LabelControl lcDepartment;
        private LabelControl lcGroup;
        private LabelControl lcMinimumSalary;
        private LabelControl lcPosition;
        private LabelControl lcRankSalary;
        private LabelControl lcStepSalary;
        private LabelControl lcTestFromDate;
        private LabelControl lcTestSalary;
        private LabelControl lcTestTime;
        private LabelControl lcTestToDate;
        private PanelControl panelControl1;
        private SplitContainerControl splitContainerControl1;

        public xfmRecruit()
        {
            this.dt_Candidate = new DataTable();
            this.components = null;
            this.InitializeComponent();
            this.InitMultiLanguages();
        }

        public xfmRecruit(DataTable Candidate)
        {
            this.dt_Candidate = new DataTable();
            this.components = null;
            this.InitializeComponent();
            this.InitMultiLanguages();
            this.InitData();
            this.dt_Candidate = Candidate;
            foreach (DataRow row in this.dt_Candidate.Rows)
            {
                try
                {
                    ImageListBoxItem item = new ImageListBoxItem {
                        Value = row["FirstName"].ToString() + " " + row["LastName"].ToString() + " (" + row["CandidateCode"].ToString() + ")"
                    };
                    if (bool.Parse(row["Sex"].ToString()))
                    {
                        item.ImageIndex = 0;
                    }
                    else
                    {
                        item.ImageIndex = 1;
                    }
                    if (int.Parse(row["Status"].ToString()) == 4)
                    {
                        item.Value = item.Value.ToString() + " - Đ\x00e3 tuyển dụng";
                        item.ImageIndex = 2;
                    }
                    this.imglistCandidate.Items.Add(item);
                }
                catch
                {
                }
            }
        }

        private void AddComboboxEdit(ComboBoxEdit combo, string str)
        {
            combo.Properties.Items.Add(str);
            combo.SelectedIndex = combo.Properties.Items.Count - 1;
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btOK_Click(object sender, EventArgs e)
        {
            if (this.glkBranch.EditValue == null)
            {
                XtraMessageBox.Show("H\x00e3y chọn chi nh\x00e1nh l\x00e0m việc cho c\x00e1c ứng vi\x00ean được tuyển dụng!");
            }
            else if (this.glkDepartment.EditValue == null)
            {
                XtraMessageBox.Show("H\x00e3y chọn ph\x00f2ng ban cho c\x00e1c ứng vi\x00ean được tuyển dụng!");
            }
            else if (this.glkRankSalary.EditValue == null)
            {
                XtraMessageBox.Show("H\x00e3y chọn ngạch lương cho c\x00e1c ứng vi\x00ean được tuyển dụng!");
            }
            else if (this.cboStepSalary.EditValue == null)
            {
                XtraMessageBox.Show("H\x00e3y chọn bậc lương cho c\x00e1c ứng vi\x00ean được tuyển dụng!");
            }
            else
            {
                foreach (ImageListBoxItem item in this.imglistCandidate.Items)
                {
                    try
                    {
                        string str = item.Value.ToString();
                        char[] separator = new char[] { '(', ')' };
                        string candidateCode = str.Split(separator)[1];
                        HRM_CANDIDATE candidate = new HRM_CANDIDATE();
                        candidate.Get(candidateCode);
                        if (candidate.Status != 4)
                        {
                            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
                            this.InitClass(candidate).Insert();
                            candidate.UpdateStatus(candidate.CandidateCode, 4);
                        }
                    }
                    catch
                    {
                    }
                }
                base.Close();
                XtraMessageBox.Show("Qu\x00e1 tr\x00ecnh ho\x00e0n tất!");
            }
        }

        private void cbo_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            xfmPositionAdd.AddedEventHander hander = null;
            xfmStepAdd.AddedEventHander hander2 = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                ComboBoxEdit edit = sender as ComboBoxEdit;
                string name = edit.Name;
                if (name != null)
                {
                    if (!(name == "cboPosition"))
                    {
                        if (name == "cboStepSalary")
                        {
                            xfmStepAdd add2 = new xfmStepAdd(Actions.Add);
                            if (hander2 == null)
                            {
                                hander2 = (s, i) => this.AddComboboxEdit(this.cboStepSalary, i.StepName);
                            }
                            add2.Added += hander2;
                            add2.ShowDialog();
                        }
                    }
                    else
                    {
                        xfmPositionAdd add = new xfmPositionAdd(Actions.Add);
                        if (hander == null)
                        {
                            hander = (s, i) => this.AddComboboxEdit(this.cboPosition, i.PositionName);
                        }
                        add.Added += hander;
                        add.ShowDialog();
                    }
                }
            }
        }

        private void cboStepSalary_EditValueChanged(object sender, EventArgs e)
        {
            DIC_SALARY_STEP dic_salary_step = new DIC_SALARY_STEP();
            dic_salary_step.Get(this.cboStepSalary.Text, this.glkRankSalary.EditValue.ToString());
            this.calCoefficient.EditValue = dic_salary_step.Coefficient;
            this.calBasicSalary.EditValue = double.Parse(this.calCoefficient.Text) * double.Parse(this.calMinimumSalary.Text);
        }

        private void cboTimeTest_EditValueChanged(object sender, EventArgs e)
        {
            if (this.cboTimeTest.SelectedIndex == 0)
            {
                this.dtTestToDate.DateTime = DateAndTime.DateAdd(DateInterval.Month, 1.0, this.dtTestFromDate.DateTime);
            }
            else if (this.cboTimeTest.SelectedIndex == 1)
            {
                this.dtTestToDate.DateTime = DateAndTime.DateAdd(DateInterval.Month, 2.0, this.dtTestFromDate.DateTime);
            }
            else if (this.cboTimeTest.SelectedIndex == 2)
            {
                this.dtTestToDate.DateTime = DateAndTime.DateAdd(DateInterval.Month, 3.0, this.dtTestFromDate.DateTime);
            }
            else if (this.cboTimeTest.SelectedIndex == 3)
            {
                this.dtTestToDate.DateTime = DateAndTime.DateAdd(DateInterval.Month, 4.0, this.dtTestFromDate.DateTime);
            }
            else
            {
                this.dtTestToDate.DateTime = DateAndTime.DateAdd(DateInterval.Month, 5.0, this.dtTestFromDate.DateTime);
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void glk_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            xfmBranchAdd.AddedEventHander hander = null;
            xfmDepartmentAdd.AddedEventHander hander2 = null;
            Dictionary.xfmGroupAdd.AddedEventHander hander3 = null;
            xfmRankAdd.AddedEventHander hander4 = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                GridLookUpEdit edit = sender as GridLookUpEdit;
                string name = edit.Name;
                if (name != null)
                {
                    if (!(name == "glkBranch"))
                    {
                        if (name == "glkDepartment")
                        {
                            xfmDepartmentAdd add2 = new xfmDepartmentAdd(Actions.Add);
                            if (hander2 == null)
                            {
                                hander2 = (s, i) => new HRM_DEPARTMENT().AddGridLookupEdit(this.glkDepartment, this.glkBranch.EditValue.ToString());
                            }
                            add2.Added += hander2;
                            add2.ShowDialog();
                        }
                        else if (name == "glkGroup")
                        {
                            Dictionary.xfmGroupAdd add3 = new Dictionary.xfmGroupAdd(Actions.Add);
                            if (hander3 == null)
                            {
                                hander3 = (s, i) => new HRM_GROUP().AddGridLookupEdit(this.glkGroup, this.glkDepartment.EditValue.ToString());
                            }
                            add3.Added += hander3;
                            add3.ShowDialog();
                        }
                        else if (name == "glkRankSalary")
                        {
                            xfmRankAdd add4 = new xfmRankAdd(Actions.Add);
                            if (hander4 == null)
                            {
                                hander4 = (s, i) => new DIC_SALARY_STEP().AddComboEditByRank(this.cboStepSalary, this.glkRankSalary.EditValue.ToString());
                            }
                            add4.Added += hander4;
                            add4.ShowDialog();
                        }
                    }
                    else
                    {
                        xfmBranchAdd add = new xfmBranchAdd(Actions.Add);
                        if (hander == null)
                        {
                            hander = (s, i) => new HRM_BRANCH().AddGridLookupEdit(this.glkBranch);
                        }
                        add.Added += hander;
                        add.ShowDialog();
                    }
                }
            }
        }

        private void glkBranch_EditValueChanged(object sender, EventArgs e)
        {
            new HRM_DEPARTMENT().AddGridLookupEdit(this.glkDepartment, this.glkBranch.EditValue.ToString());
            HRM_BRANCH hrm_branch = new HRM_BRANCH();
            hrm_branch.Get(this.glkBranch.EditValue.ToString());
            this.calMinimumSalary.EditValue = hrm_branch.MinimumSalary;
            this.calBasicSalary.EditValue = double.Parse(this.calCoefficient.Text) * double.Parse(this.calMinimumSalary.Text);
        }

        private void glkDepartment_EditValueChanged(object sender, EventArgs e)
        {
            new HRM_GROUP().AddGridLookupEdit(this.glkGroup, this.glkDepartment.EditValue.ToString());
            if (this.glkGroup.Text == "")
            {
                this.glkGroup.EditValue = null;
            }
        }

        private void glkRankSalary_EditValueChanged(object sender, EventArgs e)
        {
            DIC_SALARY_STEP dic_salary_step = new DIC_SALARY_STEP();
            dic_salary_step.AddComboEditByRank(this.cboStepSalary, this.glkRankSalary.EditValue.ToString());
            dic_salary_step.Get(this.cboStepSalary.Text, this.glkRankSalary.EditValue.ToString());
            this.calCoefficient.EditValue = dic_salary_step.Coefficient;
            this.calBasicSalary.EditValue = double.Parse(this.calCoefficient.Text) * double.Parse(this.calMinimumSalary.Text);
        }

        private void imglistCandidate_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                this.imglistCandidate.Items.RemoveAt(this.imglistCandidate.SelectedIndex);
            }
        }

        private HRM_EMPLOYEE InitClass(HRM_CANDIDATE Candidate)
        {
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE(); 
            hrm_employee = new HRM_EMPLOYEE {
                EmployeeCode = hrm_employee.NewID(),
                FirstName = Candidate.FirstName,
                LastName = Candidate.LastName,
                Alias = "",
                Sex = Candidate.Sex,
                BirthdayDay = Candidate.Birthday.Day,
                BirthdayMonth = Candidate.Birthday.Month,
                BirthdayYear = Candidate.Birthday.Year,
                Marriage = Candidate.Marriage,
                BirthPlace = Candidate.BirthPlace,
                MainAddress = Candidate.MainAddress,
                ContactAddress = Candidate.ContactAddress,
                CellPhone = Candidate.CellPhone,
                HomePhone = Candidate.HomePhone,
                Email = Candidate.Email,
                Nationality = Candidate.Nationality,
                Ethnic = Candidate.Ethnic,
                Religion = Candidate.Religion,
                Education = Candidate.Education,
                Language = Candidate.Language,
                Informatic = Candidate.Informatic,
                Professional = Candidate.Professional,
                IDCard = Candidate.IDCard,
                IDCardDate = Candidate.IDCardDate,
                IDCardPlace = Candidate.IDCardPlace,
                Health = Candidate.Health,
                Height = Candidate.Height,
                Weight = Candidate.Weight,
                EnrollNumber = "",
                Status = 0,
                Description = ""
            };
            if (this.glkBranch.EditValue == null)
            {
                MessageBox.Show("Vui l\x00f2ng chọn đầy đủ những th\x00f4ng tin c\x00f3 đ\x00e1nh dấu (*)!");
                return null;
            }
            hrm_employee.BranchCode = this.glkBranch.EditValue.ToString();
            if ((this.glkDepartment.EditValue == null) || (this.glkDepartment.Text == ""))
            {
                hrm_employee.DepartmentCode = "";
            }
            else
            {
                hrm_employee.DepartmentCode = this.glkDepartment.EditValue.ToString();
            }
            if ((this.glkGroup.EditValue == null) || (this.glkGroup.Text == ""))
            {
                hrm_employee.GroupCode = "";
            }
            else
            {
                hrm_employee.GroupCode = this.glkGroup.EditValue.ToString();
            }
            hrm_employee.Position = this.cboPosition.Text;
            hrm_employee.RankSalary = this.glkRankSalary.EditValue.ToString();
            hrm_employee.StepSalary = int.Parse(this.cboStepSalary.EditValue.ToString());
            hrm_employee.MinimumSalary = decimal.Parse(this.calMinimumSalary.EditValue.ToString());
            hrm_employee.CoefficientSalary = double.Parse(this.calCoefficient.EditValue.ToString());
            hrm_employee.DateSalary = this.dtTestToDate.DateTime;
            hrm_employee.BasicSalary = decimal.Parse(this.calBasicSalary.EditValue.ToString());
            hrm_employee.IsTest = this.cheIsTest.Checked;
            hrm_employee.TestTime = this.cboTimeTest.Text;
            hrm_employee.TestFromDate = this.dtTestFromDate.DateTime;
            hrm_employee.TestToDate = this.dtTestToDate.DateTime;
            hrm_employee.TestSalary = decimal.Parse(this.calTestSalary.EditValue.ToString());
            hrm_employee.LaborCode = "";
            hrm_employee.LaborDate = System.DateTime.Now;
            hrm_employee.LaborPlace = "";
            hrm_employee.InsuranceCode = "";
            hrm_employee.InsuranceDate = System.DateTime.Now;
            hrm_employee.InsurancePlace = "";
            hrm_employee.HealthInsuranceCode = "";
            hrm_employee.HealthInsuranceFromDate = System.DateTime.Now;
            hrm_employee.HealthInsuranceToDate = System.DateTime.Now;
            hrm_employee.Province = "";
            hrm_employee.Hospital = "";
            hrm_employee.BeginDate = this.dtTestToDate.DateTime;
            hrm_employee.IsOffWork = false;
            hrm_employee.EndDate = this.dtTestToDate.DateTime;
            hrm_employee.BankCode = "";
            hrm_employee.BankDate = System.DateTime.Now;
            hrm_employee.BankName = "";
            hrm_employee.BankAddress = "";
            hrm_employee.MilitaryCode = "";
            hrm_employee.MilitaryFromDate = System.DateTime.Now;
            hrm_employee.MilitaryToDate = System.DateTime.Now;
            hrm_employee.MilitaryPosition = "";
            hrm_employee.PassportCode = "";
            hrm_employee.PassportFromDate = System.DateTime.Now;
            hrm_employee.PassportToDate = System.DateTime.Now;
            hrm_employee.IsParty = false;
            hrm_employee.PartyCode = "";
            hrm_employee.PartyDate = System.DateTime.Now;
            hrm_employee.PartyPlace = "";
            hrm_employee.IsUnion = false;
            hrm_employee.UnionCode = "";
            hrm_employee.UnionDate = System.DateTime.Now;
            hrm_employee.UnionPlace = "";
            return hrm_employee;
        }

        private void InitData()
        {
            this.cboTimeTest.SelectedIndex = 1;
            this.dtTestFromDate.DateTime = System.DateTime.Now;
            this.dtTestToDate.DateTime = System.DateTime.Now.Add(TimeSpan.FromDays(60.0));
            DIC_MINIMUMSALARY dic_minimumsalary = new DIC_MINIMUMSALARY();
            dic_minimumsalary.Get();
            this.calTestSalary.Text = dic_minimumsalary.Money.ToString();
            this.calMinimumSalary.Text = dic_minimumsalary.Money.ToString();
            new HRM_BRANCH().AddGridLookupEdit(this.glkBranch);
            new DIC_POSITION().AddComboEdit(this.cboPosition);
            new DIC_SALARY_RANK().AddGridLookupEdit(this.glkRankSalary);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xfmRecruit));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            SerializableAppearanceObject obj3 = new SerializableAppearanceObject();
            SerializableAppearanceObject obj4 = new SerializableAppearanceObject();
            SerializableAppearanceObject obj5 = new SerializableAppearanceObject();
            SerializableAppearanceObject obj6 = new SerializableAppearanceObject();
            SerializableAppearanceObject obj7 = new SerializableAppearanceObject();
            this.grRecruitmentInformation = new GroupControl();
            this.lcMinimumSalary = new LabelControl();
            this.lcBasicSalary = new LabelControl();
            this.calMinimumSalary = new CalcEdit();
            this.calBasicSalary = new CalcEdit();
            this.grTest = new GroupControl();
            this.lcTestToDate = new LabelControl();
            this.lcTestSalary = new LabelControl();
            this.lcTestFromDate = new LabelControl();
            this.lcTestTime = new LabelControl();
            this.cheIsTest = new CheckEdit();
            this.cboTimeTest = new ComboBoxEdit();
            this.dtTestToDate = new DateEdit();
            this.dtTestFromDate = new DateEdit();
            this.calTestSalary = new CalcEdit();
            this.lcCoefficientSalary = new LabelControl();
            this.lcStepSalary = new LabelControl();
            this.lcRankSalary = new LabelControl();
            this.calCoefficient = new CalcEdit();
            this.glkRankSalary = new GridLookUpEdit();
            this.gridView7 = new GridView();
            this.colRankCode = new GridColumn();
            this.colRankName = new GridColumn();
            this.cboStepSalary = new ComboBoxEdit();
            this.lcPosition = new LabelControl();
            this.lcGroup = new LabelControl();
            this.lcDepartment = new LabelControl();
            this.lcBranch = new LabelControl();
            this.glkBranch = new GridLookUpEdit();
            this.gridLookUpEdit1View = new GridView();
            this.gridColumn5 = new GridColumn();
            this.gridColumn6 = new GridColumn();
            this.glkDepartment = new GridLookUpEdit();
            this.gridView4 = new GridView();
            this.gridColumn7 = new GridColumn();
            this.gridColumn8 = new GridColumn();
            this.glkGroup = new GridLookUpEdit();
            this.gridView5 = new GridView();
            this.gridColumn9 = new GridColumn();
            this.gridColumn10 = new GridColumn();
            this.cboPosition = new ComboBoxEdit();
            this.splitContainerControl1 = new SplitContainerControl();
            this.grRecruitmentList = new GroupControl();
            this.imglistCandidate = new ImageListBoxControl();
            this.imgList = new DevExpress.Utils.ImageCollection(this.components);
            this.panelControl1 = new PanelControl();
            this.cheOption = new CheckEdit();
            this.btCancel = new SimpleButton();
            this.btOK = new SimpleButton();
            this.grRecruitmentInformation.BeginInit();
            this.grRecruitmentInformation.SuspendLayout();
            this.calMinimumSalary.Properties.BeginInit();
            this.calBasicSalary.Properties.BeginInit();
            this.grTest.BeginInit();
            this.grTest.SuspendLayout();
            this.cheIsTest.Properties.BeginInit();
            this.cboTimeTest.Properties.BeginInit();
            this.dtTestToDate.Properties.VistaTimeProperties.BeginInit();
            this.dtTestToDate.Properties.BeginInit();
            this.dtTestFromDate.Properties.VistaTimeProperties.BeginInit();
            this.dtTestFromDate.Properties.BeginInit();
            this.calTestSalary.Properties.BeginInit();
            this.calCoefficient.Properties.BeginInit();
            this.glkRankSalary.Properties.BeginInit();
            this.gridView7.BeginInit();
            this.cboStepSalary.Properties.BeginInit();
            this.glkBranch.Properties.BeginInit();
            this.gridLookUpEdit1View.BeginInit();
            this.glkDepartment.Properties.BeginInit();
            this.gridView4.BeginInit();
            this.glkGroup.Properties.BeginInit();
            this.gridView5.BeginInit();
            this.cboPosition.Properties.BeginInit();
            this.splitContainerControl1.BeginInit();
            this.splitContainerControl1.SuspendLayout();
            this.grRecruitmentList.BeginInit();
            this.grRecruitmentList.SuspendLayout();
            ((ISupportInitialize) this.imglistCandidate).BeginInit();
            this.imgList.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.cheOption.Properties.BeginInit();
            base.SuspendLayout();
            this.grRecruitmentInformation.Controls.Add(this.lcMinimumSalary);
            this.grRecruitmentInformation.Controls.Add(this.lcBasicSalary);
            this.grRecruitmentInformation.Controls.Add(this.calMinimumSalary);
            this.grRecruitmentInformation.Controls.Add(this.calBasicSalary);
            this.grRecruitmentInformation.Controls.Add(this.grTest);
            this.grRecruitmentInformation.Controls.Add(this.lcCoefficientSalary);
            this.grRecruitmentInformation.Controls.Add(this.lcStepSalary);
            this.grRecruitmentInformation.Controls.Add(this.lcRankSalary);
            this.grRecruitmentInformation.Controls.Add(this.calCoefficient);
            this.grRecruitmentInformation.Controls.Add(this.glkRankSalary);
            this.grRecruitmentInformation.Controls.Add(this.cboStepSalary);
            this.grRecruitmentInformation.Controls.Add(this.lcPosition);
            this.grRecruitmentInformation.Controls.Add(this.lcGroup);
            this.grRecruitmentInformation.Controls.Add(this.lcDepartment);
            this.grRecruitmentInformation.Controls.Add(this.lcBranch);
            this.grRecruitmentInformation.Controls.Add(this.glkBranch);
            this.grRecruitmentInformation.Controls.Add(this.glkDepartment);
            this.grRecruitmentInformation.Controls.Add(this.glkGroup);
            this.grRecruitmentInformation.Controls.Add(this.cboPosition);
            this.grRecruitmentInformation.Dock = DockStyle.Fill;
            this.grRecruitmentInformation.Location = new Point(0, 0);
            this.grRecruitmentInformation.Name = "grRecruitmentInformation";
            this.grRecruitmentInformation.Size = new Size(0x17a, 0x184);
            this.grRecruitmentInformation.TabIndex = 0;
            this.grRecruitmentInformation.Text = "Th\x00f4ng Tin Tuyển Dụng";
            this.lcMinimumSalary.Location = new Point(0xcb, 0x16c);
            this.lcMinimumSalary.Name = "lcMinimumSalary";
            this.lcMinimumSalary.Size = new Size(0x4c, 13);
            this.lcMinimumSalary.TabIndex = 0x11;
            this.lcMinimumSalary.Text = "Lương tối thiểu:";
            this.lcBasicSalary.Location = new Point(0x13, 0x16b);
            this.lcBasicSalary.Name = "lcBasicSalary";
            this.lcBasicSalary.Size = new Size(0x4b, 13);
            this.lcBasicSalary.TabIndex = 15;
            this.lcBasicSalary.Text = "Lương căn bản:";
            int[] bits = new int[4];
            this.calMinimumSalary.EditValue = new decimal(bits);
            this.calMinimumSalary.Location = new Point(0x11c, 0x169);
            this.calMinimumSalary.Name = "calMinimumSalary";
            this.calMinimumSalary.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.calMinimumSalary.Properties.Appearance.Options.UseFont = true;
            this.calMinimumSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calMinimumSalary.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calMinimumSalary.Properties.ReadOnly = true;
            this.calMinimumSalary.Size = new Size(0x51, 20);
            this.calMinimumSalary.TabIndex = 0x12;
            bits = new int[4];
            this.calBasicSalary.EditValue = new decimal(bits);
            this.calBasicSalary.Location = new Point(0x66, 0x169);
            this.calBasicSalary.Name = "calBasicSalary";
            this.calBasicSalary.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.calBasicSalary.Properties.Appearance.Options.UseFont = true;
            this.calBasicSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calBasicSalary.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calBasicSalary.Properties.ReadOnly = true;
            this.calBasicSalary.Size = new Size(0x61, 20);
            this.calBasicSalary.TabIndex = 0x10;
            this.grTest.Controls.Add(this.lcTestToDate);
            this.grTest.Controls.Add(this.lcTestSalary);
            this.grTest.Controls.Add(this.lcTestFromDate);
            this.grTest.Controls.Add(this.lcTestTime);
            this.grTest.Controls.Add(this.cheIsTest);
            this.grTest.Controls.Add(this.cboTimeTest);
            this.grTest.Controls.Add(this.dtTestToDate);
            this.grTest.Controls.Add(this.dtTestFromDate);
            this.grTest.Controls.Add(this.calTestSalary);
            this.grTest.Location = new Point(12, 240);
            this.grTest.Name = "grTest";
            this.grTest.Size = new Size(0x162, 0x73);
            this.grTest.TabIndex = 14;
            this.grTest.Text = "Thử Việc";
            this.lcTestToDate.Location = new Point(0xc1, 0x3b);
            this.lcTestToDate.Name = "lcTestToDate";
            this.lcTestToDate.Size = new Size(0x33, 13);
            this.lcTestToDate.TabIndex = 5;
            this.lcTestToDate.Text = "Đến ng\x00e0y:";
            this.lcTestSalary.Location = new Point(7, 0x58);
            this.lcTestSalary.Name = "lcTestSalary";
            this.lcTestSalary.Size = new Size(0x4c, 13);
            this.lcTestSalary.TabIndex = 7;
            this.lcTestSalary.Text = "Lương thử việc:";
            this.lcTestFromDate.Location = new Point(10, 0x3a);
            this.lcTestFromDate.Name = "lcTestFromDate";
            this.lcTestFromDate.Size = new Size(0x2c, 13);
            this.lcTestFromDate.TabIndex = 3;
            this.lcTestFromDate.Text = "Từ ng\x00e0y:";
            this.lcTestTime.Location = new Point(0xc1, 0x20);
            this.lcTestTime.Name = "lcTestTime";
            this.lcTestTime.Size = new Size(0x2f, 13);
            this.lcTestTime.TabIndex = 1;
            this.lcTestTime.Text = "Thời gian:";
            this.cheIsTest.EditValue = true;
            this.cheIsTest.Location = new Point(0x58, 0x1d);
            this.cheIsTest.Name = "cheIsTest";
            this.cheIsTest.Properties.Caption = "C\x00f3 thử việc";
            this.cheIsTest.Size = new Size(0x57, 0x13);
            this.cheIsTest.TabIndex = 0;
            this.cboTimeTest.Location = new Point(0xf8, 0x1d);
            this.cboTimeTest.Name = "cboTimeTest";
            this.cboTimeTest.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboTimeTest.Properties.Items.AddRange(new object[] { "1 Th\x00e1ng", "2 Th\x00e1ng", "3 Th\x00e1ng", "4 Th\x00e1ng", "5 Th\x00e1ng" });
            this.cboTimeTest.Size = new Size(0x60, 20);
            this.cboTimeTest.TabIndex = 2;
            this.cboTimeTest.EditValueChanged += new EventHandler(this.cboTimeTest_EditValueChanged);
            this.dtTestToDate.EditValue = null;
            this.dtTestToDate.Location = new Point(0xf6, 0x38);
            this.dtTestToDate.Name = "dtTestToDate";
            this.dtTestToDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtTestToDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtTestToDate.Size = new Size(0x62, 20);
            this.dtTestToDate.TabIndex = 6;
            this.dtTestFromDate.EditValue = null;
            this.dtTestFromDate.Location = new Point(90, 0x38);
            this.dtTestFromDate.Name = "dtTestFromDate";
            this.dtTestFromDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtTestFromDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtTestFromDate.Size = new Size(0x60, 20);
            this.dtTestFromDate.TabIndex = 4;
            this.calTestSalary.Location = new Point(90, 0x55);
            this.calTestSalary.Name = "calTestSalary";
            this.calTestSalary.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.calTestSalary.Properties.Appearance.Options.UseFont = true;
            this.calTestSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calTestSalary.Properties.DisplayFormat.FormatString = "{0:##,##0}";
            this.calTestSalary.Properties.EditFormat.FormatString = "{0:##,##0}";
            this.calTestSalary.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calTestSalary.Properties.ShowCloseButton = true;
            this.calTestSalary.Size = new Size(0xfe, 20);
            this.calTestSalary.TabIndex = 8;
            this.lcCoefficientSalary.Location = new Point(0xe9, 0xcc);
            this.lcCoefficientSalary.Name = "lcCoefficientSalary";
            this.lcCoefficientSalary.Size = new Size(0x3d, 13);
            this.lcCoefficientSalary.TabIndex = 12;
            this.lcCoefficientSalary.Text = "Hệ số lương:";
            this.lcStepSalary.AllowHtmlString = true;
            this.lcStepSalary.Location = new Point(12, 0xcc);
            this.lcStepSalary.Name = "lcStepSalary";
            this.lcStepSalary.Size = new Size(0x44, 14);
            this.lcStepSalary.TabIndex = 10;
            this.lcStepSalary.Text = "Bậc lương (*):";
            this.lcRankSalary.AllowHtmlString = true;
            this.lcRankSalary.Location = new Point(12, 0xb0);
            this.lcRankSalary.Name = "lcRankSalary";
            this.lcRankSalary.Size = new Size(0x51, 14);
            this.lcRankSalary.TabIndex = 8;
            this.lcRankSalary.Text = "Ngạch lương (*):";
            bits = new int[4];
            this.calCoefficient.EditValue = new decimal(bits);
            this.calCoefficient.Location = new Point(0x12a, 0xc9);
            this.calCoefficient.Name = "calCoefficient";
            this.calCoefficient.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.calCoefficient.Properties.Appearance.Options.UseFont = true;
            this.calCoefficient.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calCoefficient.Properties.ReadOnly = true;
            this.calCoefficient.Size = new Size(0x43, 20);
            this.calCoefficient.TabIndex = 13;
            this.glkRankSalary.Location = new Point(0x66, 0xac);
            this.glkRankSalary.Name = "glkRankSalary";
            this.glkRankSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("glkRankSalary.Properties.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.glkRankSalary.Properties.NullText = "[Chọn ngạch lương]";
            this.glkRankSalary.Properties.PopupSizeable = false;
            this.glkRankSalary.Properties.TextEditStyle = TextEditStyles.Standard;
            this.glkRankSalary.Properties.View = this.gridView7;
            this.glkRankSalary.Size = new Size(0x107, 0x16);
            this.glkRankSalary.TabIndex = 9;
            this.glkRankSalary.ButtonClick += new ButtonPressedEventHandler(this.glk_ButtonClick);
            this.glkRankSalary.EditValueChanged += new EventHandler(this.glkRankSalary_EditValueChanged);
            this.gridView7.Columns.AddRange(new GridColumn[] { this.colRankCode, this.colRankName });
            this.gridView7.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gridView7.Name = "gridView7";
            this.gridView7.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridView7.OptionsView.ShowGroupPanel = false;
            this.colRankCode.Caption = "M\x00e3 Ngạch";
            this.colRankCode.FieldName = "RankCode";
            this.colRankCode.Name = "colRankCode";
            this.colRankCode.Visible = true;
            this.colRankCode.VisibleIndex = 0;
            this.colRankName.Caption = "T\x00ean Ngạch";
            this.colRankName.FieldName = "RankName";
            this.colRankName.Name = "colRankName";
            this.colRankName.Visible = true;
            this.colRankName.VisibleIndex = 1;
            this.cboStepSalary.Location = new Point(0x66, 200);
            this.cboStepSalary.Name = "cboStepSalary";
            this.cboStepSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("cboStepSalary.Properties.Buttons"), new KeyShortcut(Keys.None), obj3, "", null, null, true) });
            this.cboStepSalary.Properties.NullText = "[Chọn bậc lương]";
            this.cboStepSalary.Size = new Size(0x7b, 0x16);
            this.cboStepSalary.TabIndex = 11;
            this.cboStepSalary.ButtonClick += new ButtonPressedEventHandler(this.cbo_ButtonClick);
            this.cboStepSalary.EditValueChanged += new EventHandler(this.cboStepSalary_EditValueChanged);
            this.lcPosition.Location = new Point(11, 0x7c);
            this.lcPosition.Name = "lcPosition";
            this.lcPosition.Size = new Size(0x2c, 13);
            this.lcPosition.TabIndex = 6;
            this.lcPosition.Text = "Chức vụ:";
            this.lcGroup.Location = new Point(11, 0x60);
            this.lcGroup.Name = "lcGroup";
            this.lcGroup.Size = new Size(0x2d, 13);
            this.lcGroup.TabIndex = 4;
            this.lcGroup.Text = "Tổ nh\x00f3m:";
            this.lcDepartment.AllowHtmlString = true;
            this.lcDepartment.Location = new Point(11, 0x44);
            this.lcDepartment.Name = "lcDepartment";
            this.lcDepartment.Size = new Size(0x37, 14);
            this.lcDepartment.TabIndex = 2;
            this.lcDepartment.Text = "Ph\x00f2ng ban:";
            this.lcBranch.AllowHtmlString = true;
            this.lcBranch.Location = new Point(11, 40);
            this.lcBranch.Name = "lcBranch";
            this.lcBranch.Size = new Size(0x45, 14);
            this.lcBranch.TabIndex = 0;
            this.lcBranch.Text = "Chi nh\x00e1nh <color=red>(*)</color>:";
            this.glkBranch.Location = new Point(0x66, 0x24);
            this.glkBranch.Name = "glkBranch";
            this.glkBranch.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("glkBranch.Properties.Buttons"), new KeyShortcut(Keys.None), obj4, "", null, null, true) });
            this.glkBranch.Properties.NullText = "[Chọn chi nh\x00e1nh]";
            this.glkBranch.Properties.View = this.gridLookUpEdit1View;
            this.glkBranch.Size = new Size(0x107, 0x16);
            this.glkBranch.TabIndex = 1;
            this.glkBranch.ButtonClick += new ButtonPressedEventHandler(this.glk_ButtonClick);
            this.glkBranch.EditValueChanged += new EventHandler(this.glkBranch_EditValueChanged);
            this.gridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.gridColumn5, this.gridColumn6 });
            this.gridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gridLookUpEdit1View.Name = "gridLookUpEdit1View";
            this.gridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
            this.gridColumn5.Caption = "M\x00e3 chi nh\x00e1nh";
            this.gridColumn5.FieldName = "BranchCode";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 0;
            this.gridColumn6.Caption = "T\x00ean chi nh\x00e1nh";
            this.gridColumn6.FieldName = "BranchName";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 1;
            this.glkDepartment.Location = new Point(0x66, 0x40);
            this.glkDepartment.Name = "glkDepartment";
            this.glkDepartment.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("glkDepartment.Properties.Buttons"), new KeyShortcut(Keys.None), obj5, "", null, null, true) });
            this.glkDepartment.Properties.NullText = "[Chọn ph\x00f2ng ban thuộc chi nh\x00e1nh]";
            this.glkDepartment.Properties.View = this.gridView4;
            this.glkDepartment.Size = new Size(0x107, 0x16);
            this.glkDepartment.TabIndex = 3;
            this.glkDepartment.ButtonClick += new ButtonPressedEventHandler(this.glk_ButtonClick);
            this.glkDepartment.EditValueChanged += new EventHandler(this.glkDepartment_EditValueChanged);
            this.gridView4.Columns.AddRange(new GridColumn[] { this.gridColumn7, this.gridColumn8 });
            this.gridView4.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gridView4.Name = "gridView4";
            this.gridView4.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridView4.OptionsView.ShowGroupPanel = false;
            this.gridColumn7.Caption = "M\x00e3 ph\x00f2ng ban";
            this.gridColumn7.FieldName = "DepartmentCode";
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.Visible = true;
            this.gridColumn7.VisibleIndex = 0;
            this.gridColumn8.Caption = "T\x00ean ph\x00f2ng ban";
            this.gridColumn8.FieldName = "DepartmentName";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 1;
            this.glkGroup.Location = new Point(0x66, 0x5c);
            this.glkGroup.Name = "glkGroup";
            this.glkGroup.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("glkGroup.Properties.Buttons"), new KeyShortcut(Keys.None), obj6, "", null, null, true) });
            this.glkGroup.Properties.NullText = "[Chọn tổ nh\x00f3m thuộc ph\x00f2ng ban]";
            this.glkGroup.Properties.View = this.gridView5;
            this.glkGroup.Size = new Size(0x107, 0x16);
            this.glkGroup.TabIndex = 5;
            this.glkGroup.ButtonClick += new ButtonPressedEventHandler(this.glk_ButtonClick);
            this.gridView5.Columns.AddRange(new GridColumn[] { this.gridColumn9, this.gridColumn10 });
            this.gridView5.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gridView5.Name = "gridView5";
            this.gridView5.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridView5.OptionsView.ShowGroupPanel = false;
            this.gridColumn9.Caption = "M\x00e3 tổ nh\x00f3m";
            this.gridColumn9.FieldName = "GroupCode";
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 0;
            this.gridColumn10.Caption = "T\x00ean tổ nh\x00f3m";
            this.gridColumn10.FieldName = "GroupName";
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 1;
            this.cboPosition.Location = new Point(0x66, 120);
            this.cboPosition.Name = "cboPosition";
            this.cboPosition.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("cboPosition.Properties.Buttons"), new KeyShortcut(Keys.None), obj7, "", null, null, true) });
            this.cboPosition.Properties.NullText = "[Chọn chức vụ cho nh\x00e2n vi\x00ean]";
            this.cboPosition.Properties.PopupSizeable = true;
            this.cboPosition.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.cboPosition.Size = new Size(0x107, 0x16);
            this.cboPosition.TabIndex = 7;
            this.cboPosition.ButtonClick += new ButtonPressedEventHandler(this.glk_ButtonClick);
            this.splitContainerControl1.Dock = DockStyle.Fill;
            this.splitContainerControl1.Location = new Point(0, 0);
            this.splitContainerControl1.Name = "splitContainerControl1";
            this.splitContainerControl1.Panel1.Controls.Add(this.grRecruitmentList);
            this.splitContainerControl1.Panel1.Text = "Panel1";
            this.splitContainerControl1.Panel2.Controls.Add(this.grRecruitmentInformation);
            this.splitContainerControl1.Panel2.Text = "Panel2";
            this.splitContainerControl1.Size = new Size(0x26f, 0x184);
            this.splitContainerControl1.SplitterPosition = 0xef;
            this.splitContainerControl1.TabIndex = 7;
            this.splitContainerControl1.Text = "splitContainerControl1";
            this.grRecruitmentList.Controls.Add(this.imglistCandidate);
            this.grRecruitmentList.Dock = DockStyle.Fill;
            this.grRecruitmentList.Location = new Point(0, 0);
            this.grRecruitmentList.Name = "grRecruitmentList";
            this.grRecruitmentList.Size = new Size(0xef, 0x184);
            this.grRecruitmentList.TabIndex = 0;
            this.grRecruitmentList.Text = "Danh S\x00e1ch Tuyển Dụng";
            this.imglistCandidate.BorderStyle = BorderStyles.NoBorder;
            this.imglistCandidate.Dock = DockStyle.Fill;
            this.imglistCandidate.HorizontalScrollbar = true;
            this.imglistCandidate.ImageList = this.imgList;
            this.imglistCandidate.Location = new Point(2, 0x16);
            this.imglistCandidate.Name = "imglistCandidate";
            this.imglistCandidate.Size = new Size(0xeb, 0x16c);
            this.imglistCandidate.TabIndex = 0;
            this.imgList.ImageStream = (ImageCollectionStreamer) manager.GetObject("imgList.ImageStream");
            this.imgList.Images.SetKeyName(0, "male.png");
            this.imgList.Images.SetKeyName(1, "user_woman.png");
            this.imgList.Images.SetKeyName(2, "Action_Delete.png");
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.cheOption);
            this.panelControl1.Controls.Add(this.btCancel);
            this.panelControl1.Controls.Add(this.btOK);
            this.panelControl1.Dock = DockStyle.Bottom;
            this.panelControl1.Location = new Point(0, 0x184);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x26f, 0x30);
            this.panelControl1.TabIndex = 0;
            this.cheOption.EditValue = true;
            this.cheOption.Location = new Point(13, 13);
            this.cheOption.Name = "cheOption";
            this.cheOption.Properties.Caption = "M\x00e3 nh\x00e2n vi\x00ean ph\x00e1t sinh tự động";
            this.cheOption.Size = new Size(0x13d, 0x13);
            this.cheOption.TabIndex = 0;
            this.btCancel.Location = new Point(0x174, 13);
            this.btCancel.Name = "btCancel";
            this.btCancel.Size = new Size(0x6f, 0x17);
            this.btCancel.TabIndex = 1;
            this.btCancel.Text = "<< Tho\x00e1t";
            this.btCancel.Click += new EventHandler(this.btCancel_Click);
            this.btOK.Location = new Point(0x1ef, 13);
            this.btOK.Name = "btOK";
            this.btOK.Size = new Size(0x6f, 0x17);
            this.btOK.TabIndex = 2;
            this.btOK.Text = "Đồng \x00dd >>";
            this.btOK.Click += new EventHandler(this.btOK_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x26f, 0x1b4);
            base.Controls.Add(this.splitContainerControl1);
            base.Controls.Add(this.panelControl1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "xfmRecruit";
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Tuyển Dụng";
            this.grRecruitmentInformation.EndInit();
            this.grRecruitmentInformation.ResumeLayout(false);
            this.grRecruitmentInformation.PerformLayout();
            this.calMinimumSalary.Properties.EndInit();
            this.calBasicSalary.Properties.EndInit();
            this.grTest.EndInit();
            this.grTest.ResumeLayout(false);
            this.grTest.PerformLayout();
            this.cheIsTest.Properties.EndInit();
            this.cboTimeTest.Properties.EndInit();
            this.dtTestToDate.Properties.VistaTimeProperties.EndInit();
            this.dtTestToDate.Properties.EndInit();
            this.dtTestFromDate.Properties.VistaTimeProperties.EndInit();
            this.dtTestFromDate.Properties.EndInit();
            this.calTestSalary.Properties.EndInit();
            this.calCoefficient.Properties.EndInit();
            this.glkRankSalary.Properties.EndInit();
            this.gridView7.EndInit();
            this.cboStepSalary.Properties.EndInit();
            this.glkBranch.Properties.EndInit();
            this.gridLookUpEdit1View.EndInit();
            this.glkDepartment.Properties.EndInit();
            this.gridView4.EndInit();
            this.glkGroup.Properties.EndInit();
            this.gridView5.EndInit();
            this.cboPosition.Properties.EndInit();
            this.splitContainerControl1.EndInit();
            this.splitContainerControl1.ResumeLayout(false);
            this.grRecruitmentList.EndInit();
            this.grRecruitmentList.ResumeLayout(false);
            ((ISupportInitialize) this.imglistCandidate).EndInit();
            this.imgList.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.cheOption.Properties.EndInit();
            base.ResumeLayout(false);
        }

        private void InitMultiLanguages()
        {
            this.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "Recruitment", this.Text);
            this.grRecruitmentList.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "grRecruitmentList", this.grRecruitmentList.Text);
            this.grRecruitmentInformation.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "grRecruitmentInformation", this.grRecruitmentInformation.Text);
            this.grTest.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "grTest", this.grTest.Text);
            this.cheOption.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "Option", this.cheOption.Text);
            this.lcBranch.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "BranchName", this.lcBranch.Text);
            this.lcDepartment.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "DepartmentName", this.lcDepartment.Text);
            this.lcGroup.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "GroupName", this.lcGroup.Text);
            this.lcPosition.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "Position", this.lcPosition.Text);
            this.lcRankSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "RankSalary", this.lcRankSalary.Text);
            this.lcStepSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "StepSalary", this.lcStepSalary.Text);
            this.lcMinimumSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "MinimumSalary", this.lcMinimumSalary.Text);
            this.lcCoefficientSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "CoefficientSalary", this.lcCoefficientSalary.Text);
            this.lcBasicSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "BasicSalary", this.lcBasicSalary.Text);
            this.cheIsTest.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "IsTest", this.cheIsTest.Text);
            this.lcTestTime.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "TestTime", this.lcTestTime.Text);
            this.lcTestFromDate.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "TestFromDate", this.lcTestFromDate.Text);
            this.lcTestToDate.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "TestToDate", this.lcTestToDate.Text);
            this.lcTestSalary.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "TestSalary", this.lcTestSalary.Text);
            this.btCancel.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "Cancel", this.btCancel.Text);
            this.btOK.Text = MultiLanguages.GetString("tbl_CandidateRecruitment", "OK", this.btOK.Text);
        }
    }
}

